def build_profile(first, last, **user_info):
    """创建一个字典，其中包含我们知道的有关用户的一切"""
    profile = {}
    profile['first_name'] = first
    profile['last_name'] = last
    for key, value in user_info.items():
        profile[key] = value
    return profile

user_profile = build_profile('albert', 'einstein',
        location='princeton',
        field='physics')
print(user_profile)

def sanwich(*toppings):
    print('你点的三明治配料有：')
    for topping in toppings:
        print('- ' + topping)

sanwich('1', '2', '3')

my_profile = build_profile('王', '旭', 
        location='广州',
        field='网络,服务器')
print(my_profile)
